<?php
if ($sMode == 'nieuws')
{
	echo '<div id="fb-root"></div>
	<script>(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) {return;}
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, \'script\', \'facebook-jssdk\'));</script>

	<div class="fb-like" data-href="' . $_CONFIG ['url'] . 'nieuws/' . $iNewsId . '/' . str_replace(' ', '-', $sTitle) . '.html" data-send="false" data-width="220" data-show-faces="false" style="margin-top:1px"></div>
	
	<a href="https://twitter.com/share" class="twitter-share-button" data-url="' . $_CONFIG ['url'] . 'nieuws/' . $iNewsId . '/' . str_replace(' ', '_', $sTitle) . '.html" data-text="' . $sTitle . '" data-count="horizontal" data-via="Cyberweekend" data-lang="nl">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
	
	<iframe src="http://www.hyves.nl/respect/button?url=' . urlencode ($_CONFIG ['url'] . 'nieuws/' . $iNewsId . '/' . str_replace(' ', '_', $sTitle)) . '.html&counterStyle=horizontal" style="border: medium none; overflow:hidden; width:120px; height:20px;margin-left:103px;" scrolling="no" frameborder="0" ></iframe>';
}
elseif ($sMode == 'normaal')
{
	echo '<div id="fb-root"></div>
	<script>(function(d, s, id) {
	  var js, fjs = d.getElementsByTagName(s)[0];
	  if (d.getElementById(id)) {return;}
	  js = d.createElement(s); js.id = id;
	  js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
	  fjs.parentNode.insertBefore(js, fjs);
	}(document, \'script\', \'facebook-jssdk\'));</script>

	<div class="fb-like" data-href="//facebook.com/pages/Cyberweekend/143753442387937" data-send="false" data-width="200" data-show-faces="false"></div>
	
	<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://cyberweekend.info" data-text="3 maal per jaar LAN-party (15&16 okt)" data-count="horizontal" data-via="Cyberweekend" data-lang="nl">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
	
	<iframe src="http://www.hyves.nl/respect/button?url=' . urlencode ($_CONFIG ['url']) . '&counterStyle=horizontal" style="border: medium none; overflow:hidden; width:120px; height:20px;" scrolling="no" frameborder="0" ></iframe>';
}
else
{
	die ('hacker');
}

$sMode = '';